Skip to content

Add trusted publishing - #47

Merged
timrid merged 1 commit into
mainfrom
trusted-publishing-test
Jul 30, 2026
Merged

Add trusted publishing#47
timrid merged 1 commit into
mainfrom
trusted-publishing-test

Conversation

@timrid

@timrid timrid commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Add trusted publishing for pypi.org

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the release publishing pipeline to use PyPI Trusted Publishing (OIDC) instead of username/password-based Twine uploads, and introduces artifact-based packaging outputs that can be reused by the publishing job.

Changes:

  • Switch .github/workflows/python-publish.yml to publish via pypa/gh-action-pypi-publish using OIDC (id-token: write) and downloaded build artifacts.
  • Add a create_wheel_and_sdist job to CI to build wheel/sdist with uv build and upload them as an artifact.
  • Remove the legacy Twine-based build/publish steps and secrets usage from the release workflow.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
.github/workflows/python-publish.yml Reworks the release publish workflow to use OIDC trusted publishing and artifact download.
.github/workflows/ci.yml Adds a packaging job that builds wheel/sdist with uv and uploads them as artifacts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/python-publish.yml
Comment thread .github/workflows/python-publish.yml
Comment thread .github/workflows/python-publish.yml Outdated
@timrid
timrid force-pushed the trusted-publishing-test branch 2 times, most recently from a27b057 to 9b71a6e Compare July 30, 2026 10:24
@timrid
timrid force-pushed the trusted-publishing-test branch from 9b71a6e to 77562ab Compare July 30, 2026 11:18
@timrid
timrid merged commit 10c51bd into main Jul 30, 2026
6 checks passed
@timrid
timrid deleted the trusted-publishing-test branch July 30, 2026 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants